package cn.demomaster.quickui.ui.viewSection;

import android.content.Context;
import android.view.View;

import androidx.annotation.IdRes;

public abstract class QuickViewSection implements ViewSection{
    public Context context;
    private View contentView;
    @Override
    public View creatView(Context context) {
        this.context = context;
        contentView = onCreatView(context);
        initView(contentView);
        return contentView;
    }

    public View getContentView() {
        return contentView;
    }

    @Override
    public void onAttached() {

    }

    @Override
    public void onDetached(){

    }

    public <T extends View> T findViewById(@IdRes int id) {
        return contentView.findViewById(id);
    }


}
